<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<html>

	<head>
		<title>Faculty Classes</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" type="text/css" href="<c:url value="/static/resources/css/screen.css"/>"/>
	</head>

	<body>
		<div id="container">
			<div id="datePicker">
			<form action="/athena/faculty/class" method="post">
					Start Date : <input name="startDate" type="text" size="25" value="2013-01-01" id="startDate">
					End Date : <input name="endDate" type="text" size="25" value="2013-01-01" id="endDate">
 				<input type="submit" name="submit" >
				</form>
			</div>
			<div id="content">
				<h1>My Schedule</h1>
				<table class="table">
				<thead>
				<tr>
					<th>Year of Day</th>
					<th>Code</th>
		            <th>Subject</th>
		            <th>Class</th>
		            <th>Section</th>
		            <th>Block</th>
		            <th>Building</th>
		            <th>Start-Time</th>
		            <th>End-Time</th>            
	            </tr>
	            </thead>
	            <tbody>
			<c:forEach items="${routines}" var="current">
				<tr>
					<td> <c:out value="${current.yearOfDay}"/> </td>
					<td> <c:out value="${current.subjectCode}"/> </td>
					<td> <c:out value="${current.subjectName}"/> </td>
					<td> <c:out value="${current.classId}"/> </td>
					<td> <c:out value="${current.section}"/></td>
					<td> <c:out value="${current.buildingCode}"/></td>
					<td> <c:out value="${current.buildingName}"/></td>
					<td> <c:out value="${current.startTime}"/> </td>
					<td> <c:out value="${current.endTime}"/></td>
				</tr>
				</c:forEach>
				</tbody>
				</table> 
			</div>			
		</div>
	</body>
</html>